package com.show;

import java.util.Iterator;
import java.util.List;

import com.hiber.Worklog;
import com.hiber.WorklogDAO;
import com.opensymphony.xwork2.ActionSupport;

public class ListLog extends ActionSupport {
	private Worklog wl;
	private List<Worklog> wll;
	public List<Worklog> getWll() {
		return wll;
	}

	public void setWll(List<Worklog> wll) {
		this.wll = wll;
	}

	private String workDetail;
	
	public String showAll() {
		WorklogDAO wld = new WorklogDAO();
		wll = wld.findAll();
		Iterator it = wll.iterator();
		
		while(it.hasNext()){
			wl = (Worklog) it.next();
			System.out.println(wl.getTime());
		}
		return SUCCESS;
	}
}
